package org.xson.tangyuan.util;

public class TransactionTraceUtil {

	private static long		id			= 0L;

	private static Object	idMonitor	= new Object();

	public static long getTrace() {
		synchronized (idMonitor) {
			if (++id == Long.MAX_VALUE) {
				id = 0L;
			}
			return id;
		}
	}
}
